﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<ProductInfo.Core.Models.ReleaseNoteEntryVersion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewContext.RouteData.GetRequiredString("action") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<%-- Required for client side validation--%>
	<script src="/Scripts/jquery-1.3.2.js" type="text/javascript"></script>
	<script src="/Scripts/jquery.validate.js" type="text/javascript"></script>
	<script src="/Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>
	<% Html.EnableClientValidation(); %>
	
    <% using (Html.BeginForm()) { %>
		<fieldset>
			<legend>Update version</legend>
			<div class="editor-label">
				<%= Html.LabelFor(model => model.OriginalVersion) %>
			</div>
			<div class="editor-label">
				<%= Html.DropDownListFor(model => model.OriginalVersion, Model.VersionValues, Model.OriginalVersion)%>
			</div>
			<div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateVersion) %>
            </div>
			<div class="editor-field">
				<%= Html.TextBoxFor(model => model.UpdateVersion)%>
				<%= Html.ValidationMessageFor(model => model.UpdateVersion)%>
			</div>
			<p>
				<input type="submit" value="Update" />
			</p>
		</fieldset>
	<% } %>
	
    <div>
        <%= Html.ActionLink("Back to List", "List") %>
    </div>
    
</asp:Content>

